package src.Business.BaseDataObject;

import java.util.Date;

/**
 * @author Capstone Project
 * @category generic Object
 * @version 1.0
 * This is a class meant to create a Transaction object. The transaction object will be created after the transactionBroker 
 * identifies that a transaction needs to be logged. The methods in this class will allow the creation of multiple transaction
 * types, depending on what type the transactionBroker was calling for.
 *
 */
public class Transaction
{
	Date 				date;
	TransactionData[] 	transactionData;
	
	/**
	 * The default constructors
	 */
	public Transaction()
	{
		
	}
	/**
	 * @param date The date of the transaction
	 * @param transactionType The type that the transaction must be
	 * @param transactionData The contents of the transaction
	 */
	public Transaction(Date date, TransactionData[] transactionData)
	{
		this.date = date;
		this.transactionData = transactionData;
	}
	
	/**
	 * @return the date of the transaction
	 */
	public Date getDate()
	{
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date)
	{
		this.date = date;
	}
	/**
	 * @return the transactionData of the transaction
	 */
	public TransactionData[] getTransactionData()
	{
		return transactionData;
	}
	/**
	 * @param transactionData the transactionData to set
	 */
	public void setTransactionData(TransactionData[] transactionData)
	{
		this.transactionData = transactionData;
	}
}
